<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.TWindowManager类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_t_window_manager.html">TWindowManager</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="classawtk_1_1_t_window_manager-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.TWindowManager类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.TWindowManager 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_t_window_manager.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a031f85d558d7be013eeab0da7b0bbdea"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_window_manager.html#a031f85d558d7be013eeab0da7b0bbdea">TWindowManager</a> (long nativeObj)</td></tr>
<tr class="separator:a031f85d558d7be013eeab0da7b0bbdea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ea867ef024eb2a9ad072065843c8fd4"><td class="memItemLeft" align="right" valign="top">TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_window_manager.html#a9ea867ef024eb2a9ad072065843c8fd4">getTopMainWindow</a> ()</td></tr>
<tr class="separator:a9ea867ef024eb2a9ad072065843c8fd4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf1400603d9263b7898e0285a3dcd2f0"><td class="memItemLeft" align="right" valign="top">TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_window_manager.html#abf1400603d9263b7898e0285a3dcd2f0">getTopWindow</a> ()</td></tr>
<tr class="separator:abf1400603d9263b7898e0285a3dcd2f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a27902903b48032bbdae7825101b8562e"><td class="memItemLeft" align="right" valign="top">TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_window_manager.html#a27902903b48032bbdae7825101b8562e">getPrevWindow</a> ()</td></tr>
<tr class="separator:a27902903b48032bbdae7825101b8562e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1eb4464cc69866cd7870f8f81f4843f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_window_manager.html#ae1eb4464cc69866cd7870f8f81f4843f">getPointerX</a> ()</td></tr>
<tr class="separator:ae1eb4464cc69866cd7870f8f81f4843f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b6bee6e8e514a98ef962c80f456c9b7"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_window_manager.html#a5b6bee6e8e514a98ef962c80f456c9b7">getPointerY</a> ()</td></tr>
<tr class="separator:a5b6bee6e8e514a98ef962c80f456c9b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf028121f6d36249463073088b282667"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_window_manager.html#aaf028121f6d36249463073088b282667">getPointerPressed</a> ()</td></tr>
<tr class="separator:aaf028121f6d36249463073088b282667"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4203c24a05cb4dc4dda5ef4aea45565a"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_window_manager.html#a4203c24a05cb4dc4dda5ef4aea45565a">isAnimating</a> ()</td></tr>
<tr class="separator:a4203c24a05cb4dc4dda5ef4aea45565a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a255e08dc5e0a8a7d7dac1b7365f1e6b1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_window_manager.html#a255e08dc5e0a8a7d7dac1b7365f1e6b1">setShowFps</a> (boolean show_fps)</td></tr>
<tr class="separator:a255e08dc5e0a8a7d7dac1b7365f1e6b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad9b54306ee65472be97906ea5f99453b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_window_manager.html#ad9b54306ee65472be97906ea5f99453b">setMaxFps</a> (int max_fps)</td></tr>
<tr class="separator:ad9b54306ee65472be97906ea5f99453b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a951717a525f74118960a1713b1e8eede"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_window_manager.html#a951717a525f74118960a1713b1e8eede">setIgnoreInputEvents</a> (boolean ignore_input_events)</td></tr>
<tr class="separator:a951717a525f74118960a1713b1e8eede"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e020645665b87ab939670d969056468"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_window_manager.html#a8e020645665b87ab939670d969056468">setScreenSaverTime</a> (int screen_saver_time)</td></tr>
<tr class="separator:a8e020645665b87ab939670d969056468"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46caf6fda67c3500521c1377d5a5551a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_window_manager.html#a46caf6fda67c3500521c1377d5a5551a">setCursor</a> (String cursor)</td></tr>
<tr class="separator:a46caf6fda67c3500521c1377d5a5551a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3bff414a6a376221e8b1da80d217338"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_window_manager.html#ad3bff414a6a376221e8b1da80d217338">back</a> ()</td></tr>
<tr class="separator:ad3bff414a6a376221e8b1da80d217338"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a22221563ecc725783be951376422ce1b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_window_manager.html#a22221563ecc725783be951376422ce1b">backToHome</a> ()</td></tr>
<tr class="separator:a22221563ecc725783be951376422ce1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abdcf4f12ce9531caf9316f51a48a9ea7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_window_manager.html#abdcf4f12ce9531caf9316f51a48a9ea7">backTo</a> (String target)</td></tr>
<tr class="separator:abdcf4f12ce9531caf9316f51a48a9ea7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b743d5b8349c7071558c388ba13c994"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_window_manager.html#a1b743d5b8349c7071558c388ba13c994">resize</a> (int w, int h)</td></tr>
<tr class="separator:a1b743d5b8349c7071558c388ba13c994"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18f82d33552d36dd426d5b666ee37110"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_window_manager.html#a18f82d33552d36dd426d5b666ee37110">closeAll</a> ()</td></tr>
<tr class="separator:a18f82d33552d36dd426d5b666ee37110"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:ac74d71994627dbd039da64963b951af7"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_window_manager.html">TWindowManager</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_window_manager.html#ac74d71994627dbd039da64963b951af7">cast</a> (long nativeObj)</td></tr>
<tr class="separator:ac74d71994627dbd039da64963b951af7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab38c7efb8061ea956fc6dec5d329f834"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_window_manager.html">TWindowManager</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_window_manager.html#ab38c7efb8061ea956fc6dec5d329f834">instance</a> ()</td></tr>
<tr class="separator:ab38c7efb8061ea956fc6dec5d329f834"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ae18148e97e20a74c0a58ac8c496b40"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_window_manager.html">TWindowManager</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_window_manager.html#a6ae18148e97e20a74c0a58ac8c496b40">cast</a> (TWidget widget)</td></tr>
<tr class="separator:a6ae18148e97e20a74c0a58ac8c496b40"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>窗口管理器。 </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a031f85d558d7be013eeab0da7b0bbdea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a031f85d558d7be013eeab0da7b0bbdea">&#9670;&nbsp;</a></span>TWindowManager()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TWindowManager.TWindowManager </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>通过nativeObj构造Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="ad3bff414a6a376221e8b1da80d217338"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad3bff414a6a376221e8b1da80d217338">&#9670;&nbsp;</a></span>back()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TWindowManager.back </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>请求关闭顶层窗口。</p>
<blockquote class="doxtable">
<p>如果顶层窗口时模态对话框，用DIALOG_QUIT_NONE调用dialog_quit。 </p>
</blockquote>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="abdcf4f12ce9531caf9316f51a48a9ea7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abdcf4f12ce9531caf9316f51a48a9ea7">&#9670;&nbsp;</a></span>backTo()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TWindowManager.backTo </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>target</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>回到指定的窗口，关闭之上的全部窗口。</p>
<blockquote class="doxtable">
<p>如果顶层窗口时模态对话框，用DIALOG_QUIT_NONE调用dialog_quit。 </p>
</blockquote>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">target</td><td>目标窗口的名称。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a22221563ecc725783be951376422ce1b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a22221563ecc725783be951376422ce1b">&#9670;&nbsp;</a></span>backToHome()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TWindowManager.backToHome </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>回到主窗口，关闭之上的全部窗口。</p>
<blockquote class="doxtable">
<p>如果顶层窗口时模态对话框，用DIALOG_QUIT_NONE调用dialog_quit。 </p>
</blockquote>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ac74d71994627dbd039da64963b951af7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac74d71994627dbd039da64963b951af7">&#9670;&nbsp;</a></span>cast() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_window_manager.html">TWindowManager</a> awtk.TWindowManager.cast </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>把nativeObj转换层Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

</div>
</div>
<a id="a6ae18148e97e20a74c0a58ac8c496b40"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6ae18148e97e20a74c0a58ac8c496b40">&#9670;&nbsp;</a></span>cast() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_window_manager.html">TWindowManager</a> awtk.TWindowManager.cast </td>
          <td>(</td>
          <td class="paramtype">TWidget&#160;</td>
          <td class="paramname"><em>widget</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>转换为window_manager对象(供脚本语言使用)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td>window_manager对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>window_manager对象。 </dd></dl>

</div>
</div>
<a id="a18f82d33552d36dd426d5b666ee37110"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a18f82d33552d36dd426d5b666ee37110">&#9670;&nbsp;</a></span>closeAll()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TWindowManager.closeAll </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>关闭全部窗口。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aaf028121f6d36249463073088b282667"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf028121f6d36249463073088b282667">&#9670;&nbsp;</a></span>getPointerPressed()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TWindowManager.getPointerPressed </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取指针当前是否按下。</p>
<dl class="section return"><dt>返回</dt><dd>返回指针当前是否按下。 </dd></dl>

</div>
</div>
<a id="ae1eb4464cc69866cd7870f8f81f4843f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae1eb4464cc69866cd7870f8f81f4843f">&#9670;&nbsp;</a></span>getPointerX()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TWindowManager.getPointerX </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取指针当前的X坐标。</p>
<dl class="section return"><dt>返回</dt><dd>返回指针当前的X坐标。 </dd></dl>

</div>
</div>
<a id="a5b6bee6e8e514a98ef962c80f456c9b7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b6bee6e8e514a98ef962c80f456c9b7">&#9670;&nbsp;</a></span>getPointerY()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TWindowManager.getPointerY </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取指针当前的Y坐标。</p>
<dl class="section return"><dt>返回</dt><dd>返回指针当前的X坐标。 </dd></dl>

</div>
</div>
<a id="a27902903b48032bbdae7825101b8562e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a27902903b48032bbdae7825101b8562e">&#9670;&nbsp;</a></span>getPrevWindow()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TWidget awtk.TWindowManager.getPrevWindow </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取前一个的窗口。</p>
<dl class="section return"><dt>返回</dt><dd>返回窗口对象。 </dd></dl>

</div>
</div>
<a id="a9ea867ef024eb2a9ad072065843c8fd4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ea867ef024eb2a9ad072065843c8fd4">&#9670;&nbsp;</a></span>getTopMainWindow()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TWidget awtk.TWindowManager.getTopMainWindow </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取最上面的主窗口。</p>
<dl class="section return"><dt>返回</dt><dd>返回窗口对象。 </dd></dl>

</div>
</div>
<a id="abf1400603d9263b7898e0285a3dcd2f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf1400603d9263b7898e0285a3dcd2f0">&#9670;&nbsp;</a></span>getTopWindow()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TWidget awtk.TWindowManager.getTopWindow </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取最上面的窗口。</p>
<dl class="section return"><dt>返回</dt><dd>返回窗口对象。 </dd></dl>

</div>
</div>
<a id="ab38c7efb8061ea956fc6dec5d329f834"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab38c7efb8061ea956fc6dec5d329f834">&#9670;&nbsp;</a></span>instance()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_window_manager.html">TWindowManager</a> awtk.TWindowManager.instance </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取全局window_manager对象</p>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="a4203c24a05cb4dc4dda5ef4aea45565a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4203c24a05cb4dc4dda5ef4aea45565a">&#9670;&nbsp;</a></span>isAnimating()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TWindowManager.isAnimating </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取当前窗口动画是否正在播放。</p>
<dl class="section return"><dt>返回</dt><dd>返回TRUE表示正在播放，FALSE表示没有播放。 </dd></dl>

</div>
</div>
<a id="a1b743d5b8349c7071558c388ba13c994"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1b743d5b8349c7071558c388ba13c994">&#9670;&nbsp;</a></span>resize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TWindowManager.resize </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>调整原生窗口的大小。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a46caf6fda67c3500521c1377d5a5551a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a46caf6fda67c3500521c1377d5a5551a">&#9670;&nbsp;</a></span>setCursor()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TWindowManager.setCursor </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>cursor</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置鼠标指针。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">cursor</td><td>图片名称(从图片管理器中加载)。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a951717a525f74118960a1713b1e8eede"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a951717a525f74118960a1713b1e8eede">&#9670;&nbsp;</a></span>setIgnoreInputEvents()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TWindowManager.setIgnoreInputEvents </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>ignore_input_events</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置是否忽略用户输入事件。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">ignore_input_events</td><td>是否忽略用户输入事件。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ad9b54306ee65472be97906ea5f99453b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad9b54306ee65472be97906ea5f99453b">&#9670;&nbsp;</a></span>setMaxFps()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TWindowManager.setMaxFps </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>max_fps</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>限制最大帧率。</p>
<blockquote class="doxtable">
<p>TK_MAX_LOOP_FPS/max_fps最好是整数，比如TK_MAX_LOOP_FPS为120，max_fps可取60/30/20/10等。 </p>
</blockquote>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">max_fps</td><td>最大帧率。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a8e020645665b87ab939670d969056468"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8e020645665b87ab939670d969056468">&#9670;&nbsp;</a></span>setScreenSaverTime()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TWindowManager.setScreenSaverTime </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>screen_saver_time</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置屏保时间。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">screen_saver_time</td><td>屏保时间(单位毫秒), 为0关闭屏保。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a255e08dc5e0a8a7d7dac1b7365f1e6b1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a255e08dc5e0a8a7d7dac1b7365f1e6b1">&#9670;&nbsp;</a></span>setShowFps()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TWindowManager.setShowFps </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>show_fps</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置是否显示FPS。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">show_fps</td><td>是否显示FPS。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/TWindowManager.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
